package org.openems.otdr;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

@Path("/otdrFilesJson")
public class OtdrUploadJsonResource {
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public OtdrSummaryEntities get(@QueryParam("wavelength") String wavelength, @QueryParam("pulsewidth") String pulsewidth) {
        return new OtdrTraceEntities().getOtdrTrace(wavelength, pulsewidth);
    }
}
